﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using EnvDTE;
using Microsoft.DataWarehouse.VsIntegration.Shell.Project.Extensibility;
using System.IO;

namespace SSISPackageExplorer.UI
{
    public class PackageNode : NodeBase
    {
        public PackageNode(ProjectItem projectItem)
        {
            this.ImageIndex = 0;
            this.Text = projectItem.Name;
            this.ProjectItem = projectItem;
        }

        public ProjectItem ProjectItem { get; set; }

        public FileInfo FileInfo { get; set; }

        public void Open() {
            Window w = this.ProjectItem.Open(PEViewKinds.Designer);
            w.Activate();
        }
    }
}
